﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp6
{
    class JinTai2
    {
        string name1;
        string name2;
        string name3;
        string name4;
        static string LaoShi1 = "唐僧";

        public string Name1
        {
            get { return this.name1; }
            set { this.name1 = value; }
        }
        public string Name2
        {
            get { return this.name2; }
            set { this.name2 = value; }
        }
        public string Name3
        {
            get { return this.name3; }
            set { this.name3 = value; }
        }
        public string Name4
        {
            get { return this.name4; }
            set { this.name4 = value; }
        }
        public  void Test()
        {
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.name1, LaoShi1);
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.name2, LaoShi1);
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.name3, LaoShi1);
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.name4, LaoShi1);
            Test1();
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.name1, LaoShi1);
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.name2, LaoShi1);
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.name3, LaoShi1);
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.name4, LaoShi1);
        }
         void Test1()
        {
            LaoShi1 = "嫦娥";
        }
    }
}
